package com.njtoyo.taxi.admin.rest.presenter.business.simple_call.diagram;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.njtoyo.taxi.admin.mapper.master.enums.*;
import com.njtoyo.taxi.admin.rest.presenter.business.ride.RideListPresenter;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class SimpleCallDiagramListPresenter implements Serializable {
    private String callId;
    private String rideId;
    private Driver driver;
    private Taxi taxi;
    private Customer customer;
    private String createdAt;
    private String areaName;
    private String callOriginName;
    private String callDestinationName;
    private String realOriginName;
    private String realDestinationName;
    private RideOrder rideOrder;
    private String state;


    @Data
    @Accessors(chain=true)
    public static class Driver {
        private Long id;
        private String name;
        private String mobileNumber;
    }

    @Data
    @Accessors(chain=true)
    public static class Taxi {
        private Long id;
        private String plateNumber;
        private String companyName;
    }

    @Data
    @Accessors(chain=true)
    public static class Customer {
        private Long id;
        private String name;
        private String mobileNumber;
    }


    @Data
    @Accessors(chain=true)
    public static class RideOrder {
        private Integer id;
        private Boolean isCancel;
        private Boolean isPaid;
        private BigDecimal farePaid;
        private BigDecimal amount;
    }


}
